//
//  NavTitleButton.swift
//  ZYBWeibo
//
//  Created by xthink4 on 16/3/8.
//  Copyright © 2016年 zyb. All rights reserved.
//

import UIKit

class NavTitleButton: UIButton {
    
    override func layoutSubviews() {
        super.layoutSubviews()
        if self.titleLabel?.text=="首页"{
            return
        }
        titleLabel?.frame=CGRectOffset((titleLabel?.frame)!, -(self.imageView?.frame.size.width)!, 0)
        imageView?.frame=CGRectOffset((imageView?.frame)!, (self.titleLabel?.frame.size.width)!, 0)
    }
        

}
